home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 147 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: octel.com!usenet
  2. From: simon.willcocks@octel.com (Simon Willcocks)
  3. Newsgroups: comp.lang.c++,comp.lang.c
  4. Subject: Re: Hungarian notation
  5. Date: 2 Jan 1996 11:00:48 GMT
  6. Organization: Octel C/SSD
  7. Message-ID: <4cb391$ecl@info.eng.octel.com>
  8. References: <30C40F77.53B5@swsbbs.com> <marnoldDJEvtJ.1Lx@netcom.com> <4aleun$jlk@ns.RezoNet.NET> <marnoldDJMDBG.CFz@netcom.com> <4asnkr$7b0@solutions.sol <4behis$3cl@dux.dundee.ac.uk>
  9. NNTP-Posting-Host: 148.147.84.96
  10. X-Newsreader: WinVN 0.92.6+
  11.  
  12. In article <4behis$3cl@dux.dundee.ac.uk>, pjclinch@dux.dundee.ac.uk (Pete Clinch) says:
  13. >
  14. >I don't *personally* find 
  15. >fRunningTotal more unreadable than RunningTotal... if you do, you might 
  16. >use running_total_f, or fiddle to suit you, or something else.
  17.  
  18. The only problem with fRunningTotal is that you appear to be using
  19. a flag to contain some kind of number.  :-)
  20.  
  21. From "Writing Solid Code" by Steve Maguire in the section "What are
  22. those gobbledygook names?" (that's the only book description of the
  23. notation to hand):
  24.  
  25. char    ch;    /* a plain old character */
  26. byte    b;    /* a byte, which is an unsigned char */
  27. flag    f;    /* flags that are always TRUE or FALSE */
  28. ...
  29.  
  30. In this case I understood that the variable was a number from the
  31. name of the variable, not the hungarian bit; the name would have
  32. been CalculatingRunningTotal (or something) if it really was a flag.
  33.  
  34. Simon Willcocks.
  35.